﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Scap.Info
{
    public class ScapEmailConfiguration
    {
        public int Id { get; set; }

        [Required]
        [Display(Name = "Servidor SMTP")]
        public string Host { get; set; }

        [Required]
        [Range(100, 40000)]
        [Display(Name = "Puerto")]
        public int Port { get; set; }

        [Required]
        [Display(Name = "SSL")]
        public bool Ssl { get; set; }

        [Required]
        [Display(Name = "Usuario")]
        public string Username { get; set; }

        [Required]
        [DataType(DataType.Password)]
        [Display(Name = "Contraseña")]
        public string Password { get; set; }

        [Required]
        [DataType(DataType.EmailAddress)]
        [Display(Name = "Email")]
        public string Email { get; set; }
    }
}
